package com.aaa.mapper;

import com.aaa.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【menu】的数据库操作Mapper
* @createDate 2024-12-25 09:33:07
* @Entity com.aaa.entity.Menu
*/
public interface MenuMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    List<Menu> selectByRoleId(Integer roleid);

    List<Menu> selectAll();

    List<Integer> selectMenuIdByRoleId(Integer roleid);

    int deleteByRoleid(Integer roleid);

    void batchInsert(@Param("roleid") Integer roleid,@Param("cids") Integer[] cids);
}
